package com.ddc.study.entity;

import com.google.gson.annotations.SerializedName;

import java.util.List;

import androidx.annotation.NonNull;

/**
 * Created on 2018/6/1.
 *
 * @author lshun
 * @version 1.0
 */
public class Tree {
    @SerializedName("children")
    private List<Tree> mChildren;
    @SerializedName("courseId")
    private int mCourseId;
    @SerializedName("id")
    private int mId;
    @SerializedName("name")
    private String mName;
    @SerializedName("order")
    private int mOrder;
    @SerializedName("parentChapterId")
    private int mParentChapterId;
    @SerializedName("visible")
    private int mVisible;

    public List<Tree> getChildren() {
        return mChildren;
    }

    public void setChildren(List<Tree> children) {
        mChildren = children;
    }

    public int getCourseId() {
        return mCourseId;
    }

    public void setCourseId(int courseId) {
        mCourseId = courseId;
    }

    public int getId() {
        return mId;
    }

    public void setId(int id) {
        mId = id;
    }

    public String getName() {
        return mName;
    }

    public void setName(String name) {
        mName = name;
    }

    public int getOrder() {
        return mOrder;
    }

    public void setOrder(int order) {
        mOrder = order;
    }

    public int getParentChapterId() {
        return mParentChapterId;
    }

    public void setParentChapterId(int parentChapterId) {
        mParentChapterId = parentChapterId;
    }

    public int getVisible() {
        return mVisible;
    }

    public void setVisible(int visible) {
        mVisible = visible;
    }

    @NonNull
    @Override
    public String toString() {
        return "Tree{" +
                "mChildren=" + mChildren +
                ", mCourseId=" + mCourseId +
                ", mId=" + mId +
                ", mName='" + mName + '\'' +
                ", mOrder=" + mOrder +
                ", mParentChapterId=" + mParentChapterId +
                ", mVisible=" + mVisible +
                '}';
    }
}
